HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/compute/storage_pools/set_iam_policy.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: "Set the IAM policy of the given storage pool."
    description: "Set the IAM policy of the given storage pool."
    examples: |
      The following command sets the IAM configuration of the specified
      storage pool with the specified policy file.

        $ {command} my-storage-pool policy.json

  request:
    ALPHA:
      api_version: alpha
    BETA:
      api_version: beta
    GA:
      api_version: v1

    collection: compute.storagePools
    use_relative_name: false
    modify_request_hooks:
    - googlecloudsdk.command_lib.iam.hooks:UseMaxRequestedPolicyVersion:api_field=zoneSetPolicyRequest.policy.version
    method: setIamPolicy

  arguments:
    resource:
      help_text: Storage pool you want to get the IAM permissions of.
      spec: !REF googlecloudsdk.command_lib.compute.resources:storage_pool

  iam:
    set_iam_policy_request_path: zoneSetPolicyRequest
    message_type_overrides:
      policy: Policy
      set_iam_policy_request: ComputeStoragePoolsSetIamPolicyRequest